package vboot.core.module.mon.server.main;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import oshi.software.os.windows.WindowsOperatingSystem;
import vboot.core.common.api.R;


@RestController
@RequestMapping("mon/server/main")
public class MonServerMainApi {

    @Autowired
    private MonitorServiceImpl monitorService;

    @GetMapping
    public R get() throws Exception {
        MonServerMain server = new MonServerMain();
        server.copyTo();
//        return R.ok(monitorService.getServers());
        return R.ok(server);
    }



}
